package com.sgu6.middleware.enums;

public enum MachineCmdEnum {

    清除警报("82004600010000"),
    停止当前工作并待机("5AA509820046000100000000"),
    重置当前错误继续工作("5AA509820046000200000000"),
    当前工作状态("5AA50783000200070000"),
    系统复位("5AA509820041A3B5CFDA0000"),
    系统重启("5AA509820042A3B5CFDA0000"),
    手动模式("5AA509820050000100000000"),
    自动模式("5AA509820050000000000000"),

    精度步数设置("5AA5098200%02x0000%04x0000"),
    精度步数调节("5AA509820043000100%02x0000"),

    设置横封温度("5AA5098200110000%04x0000"),
    设置纵封温度("5AA5098200120000%04x0000"),
    设置回差温度("5AA5098200130000%04x0000"),
    标定温度("5AA50982004A000100000000"),

    设置重量补偿值("5aa509820015000000%02x0000"),
    重量标定("5AA5098200480001%04x0000"),

    碾米("5AA50982004400%02x%04x0000"),

    自动送谷模式("5AA509820020000000000000"),
    不自动送谷模式("5AA509820020000100000000"),

    打开开关门模式("5AA509820021000100010000"),
    关闭开关门模式("5AA509820021000000000000"),

    打开电子锁模式("5AA509820022000100010000"),
    关闭电子锁模式("5AA509820022000000000000"),

    打开灯箱("5AA50982004B000100010000"),
    关闭灯箱("5AA50982004B000100000000"),

    打开灯箱1("5AA50982005C000100010000"),
    关闭灯箱1("5AA50982005C000100000000"),

    开始灭虫("5AA50982004C000100010000"),
    停止灭虫("5AA50982004C000100000000"),

    开始灭虫1("5AA50982005D000100010000"),
    停止灭虫1("5AA50982005D000100000000"),


    //电量
    电压("5aa50783000A00010000"),
    电流("5aa50783000B00010000"),
    功率("5aa50783000C00010000"),
    功率因素("5aa50783000E00010000"),
    电量("5aa50783000D00010000"),

    ///////////////////////////////////////////
    送谷保持时间("5AA5098200140000%04x0000"),
    送谷保持时间默认("5AA5098200140000012C0000"),

    温度超温警报("5AA5098200600000%04x0000"),
    温度超温警报默认("5AA509820060000007080000"),

    加热超时警报("5AA5098200610000%04x0000"),
    加热超时警报默认("5AA509820061000023280000"),

    碾米超时警报("5AA5098200620000%04x0000"),
    碾米超时警报默认("5AA509820062000002580000"),

    下米超时警报("5AA5098200630000%04x0000"),
    下米超时警报默认("5AA509820063000000320000"),

    拉膜超时警报("5AA5098200640000%04x0000"),
    拉膜超时警报默认("5AA509820064000000960000"),

    封膜超时警报("5AA5098200650000%04x0000"),
    封膜超时警报默认("5AA509820065000000320000"),

    开门超时警报("5AA5098200660000%04x0000"),
    开门超时警报默认("5AA509820066000002580000"),

    关门超时警报("5AA5098200670000%04x0000"),
    关门超时警报默认("5AA509820067000002580000"),

    取货超时警报("5AA5098200680000%04x0000"),
    取货超时警报默认("5AA509820068000002580000"),

    送谷超时警报("5AA5098200690000%04x0000"),
    送谷超时警报默认("5AA50982006900000BB80000"),

    送膜超时警报("5AA50982006A0000%04x0000"),
    送膜超时警报默认("5AA50982006A000000960000"),

    糠满超时警报("5AA50982006C0000%04x0000"),
    糠满超时警报默认("5AA50982006C000003e80000"),

    精度电机最大复位步数警报("5AA50982006B0000%04x0000"),
    精度电机最大复位步数警报默认("5AA50982006B00000BB80000"),


    启动碾米电机("5AA509820051000100000000"),
    立即关闭碾米电机("5AA509820051000000000000"),
    启动并按时关闭碾米电机("5AA5098200510002%04x0000"),

    启动下米电机("5AA509820052000100000000"),
    立即关闭下米电机("5AA509820052000000000000"),
    启动并按时关闭下米电机("5AA5098200520002%04x0000"),

    启动拉膜电机("5AA509820053000100000000"),
    立即关闭拉膜电机("5AA509820053000000000000"),
    启动并按时关闭拉膜电机("5AA5098200530002%04x0000"),

    启动封膜电机("5AA509820054000100000000"),
    立即关闭封膜电机("5AA509820054000000000000"),
    启动并按时关闭封膜电机("5AA5098200540002%04x0000"),

    启动吹糠电机("5AA509820055000100000000"),
    立即关闭吹糠电机("5AA509820055000000000000"),
    启动并按时关闭吹糠电机("5AA5098200550002%04x0000"),

    启动送谷电机("5AA509820056000100000000"),
    立即关闭送谷电机("5AA509820056000000000000"),
    启动并按时关闭送谷电机("5AA5098200560002%04x0000"),

    启动送膜电机("5AA509820059000100000000"),
    立即关闭送膜电机("5AA509820059000300000000"),
    启动并按时关闭送膜电机("5AA5098200570004%04x0000"),

    立即停止开门电机("5AA509820059000300000000"),
    开门电机开到位("5AA509820059000100000000"),
    开门电机关到位("5AA509820059000200000000"),
    启动并按时关闭开门电机("5AA5098200590004%04x0000"),

    关门延时时间("5AA5098200100000%04x0000"),

    下米延迟("5AA5098200250000%04x0000"),
    拉膜延迟("5AA5098200260000%04x0000"),
    封膜延迟("5AA5098200270000%04x0000"),


    停止精度电机("5AA509820058000000000000"),
    复位精度电机("5AA509820058000100000000"),
    反转精度电机向左("5AA509820058000203E80000"),
    正转精度电机向右("5AA509820058000303E80000"),
    开始横封加热("5AA50982005B000100000000"),
    关闭横封加热("5AA50982005B000000000000"),
    开始纵封加热("5AA50982005A000100000000"),
    关闭纵封加热("5AA50982005A000000000000"),



    糙米("5AA509820043000100020000"),
    胚芽米("5AA509820043000100050000"),
    精米("5AA509820043000100070000"),

    打米("5AA509820044000101f40000"),
    打包("5AA509820045%04x00010000"),
    测试心跳("5AA50783000200040000"),
    心跳包("5AA50783000200070000"),
    当前温度("5aa50783000200010000"),

    碾米中("83000500030002"),
    下米("83000500030003"),
    拉膜("83000500030004"),
    封膜("83000500030005"),
    待机("83000500020000"),
//    待机("83000500030007"),//连续碾米协议
    送谷超时("83000600000200"),

    出米("5AA509820044000100000000"),
    当前重量("5AA50783000300010000"), //获取称重斗当前重量
    超温上限("83000600000001"), //超温保护时单片机返回指令
    碾米上限("83000600000004"); //缺谷时单片机返回指令

    private String code;

    MachineCmdEnum(String code) {
        this.code = code;
    }

    public String code() {
        return this.code;
    }
}
